﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Simple.Services
{
    public class ChildrenPageInputModel : PageInputModel
    {
        /// <summary>
        /// 幼儿姓名
        /// </summary>
        public string? ChildName { get; set; }

        /// <summary>
        /// 班级
        /// </summary>
        public string? ClassId { get; set; }

        /// <summary>
        /// 幼儿状态
        /// </summary>
        public EnumChildState? State { get; set; }
    }

    public class ChildrenPageInputMobileModel : PageInputModel
    {
        /// <summary>
        /// 幼儿姓名
        /// </summary>
        public string? ChildName { get; set; }

        /// <summary>
        /// 班级
        /// </summary>
        public string? ClassId { get; set; }
    }

    public class MobileUpdateParentRelationDto
    {
        /// <summary>
        /// 幼儿id
        /// </summary>
        public Guid? ChildId { get; set; }

        /// <summary>
        /// 家属id
        /// </summary>
        public Guid? ParentId { get; set; }

        /// <summary>
        /// 与幼儿关系
        /// </summary>
        [JsonConverter(typeof(JsonStringEnumConverter))]
        public EnumParentRelationship? Relationship { get; set; }

        /// <summary>
        /// 家长姓名
        /// </summary>
        public string? ParentName { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        public string? PhoneNumber { get; set; }
    }

    public class MobileUpdateHeadshotInput {
        /// <summary>
        /// 幼儿id
        /// </summary>
        public Guid? ChildId { get; set; }

        public Guid? ImgId { get; set; }
    }
}
